# coding=utf-8

"""
@Author: LiangChao
@Email: kevinleong1011@hotmail.com
@Desc: 
"""


class MakitestError(Exception):
    """"""

    def __init__(self, message, **data):
        self.message = message
        self.data = data


class TestFailedError(MakitestError):
    """"""


class TestBlockedError(MakitestError):
    """"""


class TestSkippedError(MakitestError):
    """"""


class InvalidTestError(MakitestError):
    """"""


class InvalidProjectError(MakitestError):
    """"""


class InvalidPluginError(MakitestError):
    """"""

    def __init__(self, plugin):
        message = f'Invalid plugin: {plugin}, should be a module or class'
        super().__init__(message)


class ManualError(MakitestError):
    """"""


class UserInterruptError(MakitestError):
    """"""
